package com.tmt.datatable.helper;

import javax.persistence.criteria.CriteriaBuilder;
import javax.persistence.criteria.CriteriaQuery;
import javax.persistence.criteria.Predicate;
import javax.persistence.criteria.Root;
import java.util.List;
import java.util.Map;

/**
 * Created by ThreeManTeam on 2017/7/27.
 */
public interface QueryConditionParser {

    <T> boolean parserConditon(Class<T> clazz, Root<T> root, CriteriaQuery<?> query, CriteriaBuilder cb,
                         List<Predicate> predicateList, Map.Entry<String, String[]> entry);
}
